function getUrlParam(c) {
    var b = window.location.href;
    var d = new RegExp("[?&]" + c + "=([^&]+)", "g");
    var g = d.exec(b);
    var a = null;
    if (null != g) {
        try {
            a = decodeURIComponent(decodeURIComponent(g[1]))
        } catch (f) {
            try {
                a = decodeURIComponent(g[1])
            } catch (f) {
                a = g[1]
            }
        }
    }
    return a
}
export { getUrlParam }